﻿@model string
@{
    var metadataValues = ViewData.ModelMetadata.AdditionalValues;
    var cssClasses = metadataValues["Styles"] as string;
    if (cssClasses != null)
    {
        if (ViewData.ModelMetadata.DataTypeName == "Password")
        {
    @Html.PasswordFor(m => m, new { @class = cssClasses })
        }
        else
        {
    @Html.TextBoxFor(m => m, new { @class = cssClasses })
        }
    }
    else
    {
    @Html.TextBoxFor(m => m)
    }
}
